<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <title>moment</title>
</head>
<body>
<p>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

<script src="../../app/bower_components/moment/moment.js"></script>

<script>

    var d = moment('2015-05-05 10:20');
    var d1 = moment(parseInt('1465978104973'));

    var t = d1.format('YYYY-MM-DD HH:mm:ss');

    console.log(t);

</script>

</body>
</html>